package com.ruoyi.points.pointsAccessDetail.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 积分详情对象 points_access_detail
 * 
 * @author ruoyi
 * @date 2025-01-07
 */
public class PointsAccessDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    @Excel(name = "主键自增")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 获取方式id */
    @Excel(name = "获取方式id")
    private Long accessId;

    /** 获取方式名称 */
    @Excel(name = "获取方式名称")
    private String accessName;

    /** 积分数量 */
    @Excel(name = "积分数量")
    private Integer quantity;

    /** 获取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "获取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 逻辑删除 */
    private Integer isDeleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAccessId(Long accessId) 
    {
        this.accessId = accessId;
    }

    public Long getAccessId() 
    {
        return accessId;
    }
    public void setQuantity(Integer quantity)
    {
        this.quantity = quantity;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getQuantity()
    {
        return quantity;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setIsDeleted(Integer isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted()
    {
        return isDeleted;
    }

    public String getAccessName() {
        return accessName;
    }

    public void setAccessName(String accessName) {
        this.accessName = accessName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("accessId", getAccessId())
            .append("quantity", getQuantity())
            .append("date", getDate())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
